<?php
/* SVN FILE: $Id: resubmit.ctp 11 2009-09-12 23:39:35Z kenreily@gmail.com $ */
/**
 * Short description for file.
 *
 * Long description for file
 *
 * PHP versions 4 and 5
 *
 * Recenseo: Online submission and reviewing for education
 * Copyright 2008-2009, Ken Reily
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * $Date: 2009-09-12 23:39:35 +0000 (Sat, 12 Sep 2009) $
 * $Revision: 11 $
 * $Author: kenreily@gmail.com $
 * $HeadURL: http://recenseo.googlecode.com/svn/trunk/app/views/submissions/resubmit.ctp $
 */

  if (count($submission_info) > 0)
  {
?>
<dl>
  <dt>Submitted</dt>
  <dd><?php echo $time->nice($submission_info['s']['created']); ?></dd>
  
  <dt>Course</dt>
  <dd><?php echo $html->link($submission_info['c']['name'],'/assignments/index/' . $submission_info['c']['id']); ?></dd>
  
  <dt>Assignment</dt>
  <dd><?php echo $submission_info['a']['name']; ?></dd>

  <dt>File</dt>
  <dd><?php echo $html->link($submission_info['s']['file_name'],'/submissions/download/' . $submission_id); ?></dd>
  
  <dt>Type</dt>
  <dd><?php echo $submission_info['s']['file_type']; ?></dd>
  
  <dt>Size</dt>
  <dd><?php echo number_format($submission_info['s']['file_size'] / 1024,1) . 'kb'; ?></dd>
  
  <dt>Comments</dt>
  <dd><?php echo $submission_info['s']['comments']; ?>&nbsp;</dd>
</dl>
<p>You are indicating that you wish to take this submission back. You will need to resubmit in order to get credit. Are you sure?</p>
<?php echo $form->create('Submission',array('action' => '/resubmit/' . $submission_id)); ?>
<?php echo $form->hidden('Submission.assignment_id',array('value' => $submission_info['a']['id'])); ?>
<?php echo $form->end('Take Back'); ?>
<p><?php echo $html->link('Return','/submissions/view/' . $submission_id); ?> to view this submission without taking it back.</p>
<?php
  }  
?>